package org.lanqiao.service.impl;

import org.lanqiao.dao.AliPayDao;
import org.lanqiao.entity.OrderInfo;
import org.lanqiao.service.AliPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;

@Service
public class AliPayServiceImpl implements AliPayService {
    @Autowired
    AliPayDao aliPayDao;
    @Override
    public String getOrderId(String userId, String money) {
        return aliPayDao.getOrderId(userId, money);
    }

    @Override
    public OrderInfo getPayInfoByOrderId(String orderId) {
        return aliPayDao.getPayInfoByOrderId(orderId);
    }

    @Override
    public void recharge(String orderId) {
        aliPayDao.recharge(orderId);
    }

    @Override
    public void addRechargeRecord(String rechargeId, Double rechargeMoney, Timestamp rechargeTime, int rechargeStatus, String wxId) {

    }
}
